package com.mdtx.business;

/**
 * 业务异常代码
 *
 * @author 猫啊
 * @create 2017-09-02 11:10
 **/
public enum BusinessErrorCode {

    SUCCES(10000,"登录成功"),
    UR_PWD_ERR(10001,"用户名或密码错误"),
    CAPTCHA(10002,"验证码错误"),
    CAPTCHA_OUTTIME(10003,"无效的验证码");

    private Integer code;

    private String errorInfo;

    BusinessErrorCode(Integer code, String errorInfo) {
        this.code = code;
        this.errorInfo = errorInfo;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }
}
